package com.example.richobject;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.annotation.Nullable;

public class WelcomeActivity extends BaseActivity {

    ImageView ivModule;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        ivModule = findViewById(R.id.ivModule);
        ivModule.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(WelcomeActivity.this,MainActivity.class));
                finish();
            }
        });
        startSave("192.17.0.7", "8080");
    }

    @Override
    public void initData() {
        //closeSocket();
        startActivity(new Intent(WelcomeActivity.this,MainActivity.class));
        finish();
    }
}
